package com.datang.petstore.controller;



import com.datang.petstore.resultpage.Result;
import com.datang.petstore.service.MicroblogLabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-11-01 17:00
 * @notify 标签api
 * @version 1.0
 */
@RestController
public class MicroblogLabelController {

    @Autowired
    private MicroblogLabelService labelService;

    /*
     * @author 顶风少年
     * @date 2019/11/1 17:20
     * @mail dfsn199703132038@foxmail.com
     * @throws
     * @param
     * @result com.datang.petstore.resultpage.Result
     * @notify 获取热门标签
     * version 1.0
     */
    @GetMapping(value="label")
    public Result getHotMicroblogLabel(){
        List<String> hotMicroblogLabel = labelService.getHotMicroblogLabel();
        return Result.ok(hotMicroblogLabel);
    }
}
